// 提示框

cc.Class({
    extends: cc.Component,

    properties: {
        m_labelMassagr : cc.Label,
        m_callbackFun:null,
    },

    onLoad () {
        this.m_labelMassagr.string = '';
    },

    // 文字的设置
    SetShowContent : function(str) {
        this.m_labelMassagr.string = str;
    },

    // 确认按钮
    onConfirmButton: function(event) {
        if(!this.m_callbackFun) {
            return;
        }
        
        this.m_callbackFun();
    },

    // 设置回调
    SetCallbackFun: function(callback) {
        this.m_callbackFun = callback;
    },
});